package com.bagu.bean4;

import org.springframework.beans.factory.FactoryBean;

public class TestControllerFctoryBean implements FactoryBean<TestController> {
    /*实际上就是这个方法的返回值创建到了容器里面*/
    @Override
    public TestController getObject() throws Exception {
        return new TestController();
    }

    /*需要创建的对象的类型*/
    @Override
    public Class<?> getObjectType() {
        return TestController.class;
    }


}